package com.gomore.opple.module.cards;


import com.gomore.opple.data.DataRepositoryComponent;
import com.gomore.opple.module.cards.approving.ApprovingPresenterModule;
import com.gomore.opple.module.cards.claimed.ClaimedPresenterModule;
import com.gomore.opple.module.cards.unclaimed.UnclaimedPresenterModule;
import com.gomore.opple.module.cards.used.UsedPresenterModule;
import com.gomore.opple.module.main.good.GoodPresenterModule;
import com.gomore.opple.module.main.home.HomePresenterModule;
import com.gomore.opple.module.main.mine.MinePresenterModule;
import com.gomore.opple.module.main.shoppingcar.ShoppingCarPresenterModule;
import com.gomore.opple.utils.FragmentScoped;

import dagger.Component;

/**
 * 子的Component
 * dependencies = DataRepositoryComponent.class，添加了上层依赖
 * 全局的生命周期FragmentScoped
 */
@FragmentScoped
@Component(dependencies = DataRepositoryComponent.class, modules = {UnclaimedPresenterModule.class, ApprovingPresenterModule.class, ClaimedPresenterModule.class, UsedPresenterModule.class})
public interface CardsComponent {
    void inject(CardsActivity activity);
}
